package school30.ui.events;

import school30.ui.forms.Widget;

/**
 * Base class of all widget events
 * @author asamarin97
 */

public abstract class Event {
    protected Widget source;

    /**
     * @return source of this event
     */
    public Widget getSource() {
        return source;
    }

    /**
     * Sets the source of this event
     * @param source - new source
     */
    public void setSource(Widget source) {
        this.source = source;
    }
}
